package cn.lxh.org.domain;

import cn.lxh.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
public class Department extends BaseDomain {

    private String sn;
    private String name;

    //部门的上级分类层级id

    private String dirPath;
    private Integer state;
    private Long manager_id;

    private Employee employee;//部门管理员

    private Long parent_id;

    private Department parent;//上级部门

    private Long shop_id;
    //无限极数
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Department> children = new ArrayList<>();




}
